import request from '@/utils/request'

export const reqGetChallengeList = (data) => request.get('/challengeBox', {
  params: data
})

export const reqGetChallengePrizes = (data) => {
  return request.get('/challengeBoxPrizes', { params: data })
}

export const reqChangeChallengeStatus = (id, data) => request.put('/challengeBox/status/' + id, data)

export const reqGetChallengeRecord = (data) => request.get("/challengeBoxOrderPrizes/record", {params: data})

export const reqChallengeRenewBoxs = (data) => request.post('/challengeBoxPrizes/renewBoxs', data)

export const reqDeleteChallengePrize = (id) => request.delete('/challengeBoxPrizes/' + id)